<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>console.log的用法</title>
</head>
<body>

    <script type="text/javascript">
        //相比alert(),可显示详细内容,如数组，对象里的具体内容
        //变量
        var info = '我是无业游民';
        console.log('变量:',info);
        
        //数组
        var arr = [1,2,3,4,5,6];
        console.log('数组：',arr);

        //对象
        var obj1 = {
        	key1:'value1',
        	key2:'value2',
        	key3:'value3'
        };

        var obj2 = {
        	key1:'value1',
        	key2:'value2',
        	key3:'value3'
        };

        var obj3 = {
        	key1:'value1',
        	key2:'value2',
        	key3:'value3'
        };
        console.log('对象:',obj1);

        //对象数组
        var Aarray = [obj1,obj2,obj3];
        console.log('对象数组:',Aarray);
    </script>
	
</body>
</html>













































